# PAM module for pefs
# $FreeBSD$

SYS=		${.CURDIR}/../../../../sys
PEFSDIR=	${.CURDIR}/../../../../sbin/pefs

LIB=	pam_pefs
MAN=	pam_pefs.8
SRCS=	pam_pefs.c
SRCS+=	pefs_key.c pefs_keychain.c pefs_subr.c
SRCS+=	rijndael-api.c rijndael-api-fst.c rijndael-alg-fst.c
SRCS+=	sha2.c
SRCS+=  hmac_sha512.c
SRCS+=  pbkdf2_hmac_sha512.c
SRCS+=  crypto_verify_bytes.c

CFLAGS+= -I${PEFSDIR}
CFLAGS+= -I${SYS}
VERSION_MAP= Version.map
WARNS?=	2

DPADD= ${LIBUTIL}
LDADD= -lutil

.include <bsd.lib.mk>

.PATH: ${PEFSDIR}
.PATH: ${SYS}/fs/pefs
.PATH: ${SYS}/crypto
.PATH: ${SYS}/crypto/rijndael
.PATH: ${SYS}/crypto/hmac ${SYS}/crypto/pbkdf2 ${SYS}/crypto/sha2
